package com.itheima.dao;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();


    List<String> findOrderDate();

    Integer findOrderCount(String date);

    Integer findOrderStatusCount(String date);


    public Map findOrderById(Integer id);

    public void deleteByMemberId(Integer id);

    void deleteOrderById(Integer id);

    void switchStatusChange(@Param("id") Integer id, @Param("orderStatus") String orderStatus);

    List<Integer> findIdsByOrderId(@Param("id") Integer id);

    //todo
    // void edit(Order order);
}
